package com.usdt.common.enums;

/**
 * <p>
 * Oss文件的访问级别
 * Default 表示继承bucket的权限
 * </p>
 *
 * @author light
 * @since 2018/12/26
 */
public enum FileAccessLevel {


    Private, Default, PublicRead, PublicReadWrite;

    public static boolean canPublicRead(FileAccessLevel accessLevel){
        return accessLevel!=null&&(accessLevel==PublicRead||accessLevel==PublicReadWrite);
    }

}
